package com.software.adapterview.entity;

import com.software.adapterview.R;

import java.util.ArrayList;
import java.util.List;

/**
 *
 */
public class Product {
    private String productName;

    private Integer productImage;
    private Double ProductPrice;

    public Product() {
    }

    public Product(String productName, Integer productImage, Double productPrice) {
        this.productName = productName;
        this.productImage = productImage;
        ProductPrice = productPrice;
    }

    public static List<Product> getProductList(){
        List<Product> products = new ArrayList<>();
        products.add(new Product("华为", R.drawable.huawei, 6999.00));
        products.add(new Product("小米", R.drawable.xiaomi, 5299.00));
        products.add(new Product("oppo", R.drawable.oppo, 4299.00));
        products.add(new Product("荣耀", R.drawable.rongyao, 3299.00));
        products.add(new Product("iphone", R.drawable.iphone, 8999.00));
        products.add(new Product("vivo", R.drawable.vivo, 7999.00));
        return products;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductImage() {
        return productImage;
    }

    public void setProductImage(Integer productImage) {
        this.productImage = productImage;
    }

    public Double getProductPrice() {
        return ProductPrice;
    }

    public void setProductPrice(Double productPrice) {
        ProductPrice = productPrice;
    }
}
